// ---------- Functions Script ----------
// --------- Created by VRocker ---------

COL_CMDERROR <- Colour( 250, 20, 20 );

// Called to load any additional scripts
function LoadScripts()
{
	print( "Loading Scripts..." );
	
	// Add any additional scripts here
	print( "Loading accounts system" );
	dofile( SCRIPT_LOCATION + "Accounts.nut" );
	
	print( "All scripts loaded successfully" );
}

// Saves any hash tables used
// Also calls save in other scripts
function SaveHashes()
{
	// Save accounts
	SaveAccountHashes();
	
}

// Load any hash tables
// Also calls load in other scripts
function LoadHashes()
{
	// Load accounts
	LoadAccountHashes();
}

// Unloads all hashes from memory - needed when reloading the scripts
function CloseHashes()
{
	CloseAccountHashes();
	
	CloseMoneyHashes();
}